home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_12.lha / 8_12 / 8_12b1.h < prev    next >
Text File  |  1993-08-08  |  389b  |  17 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / An istream with an additional
  6. / pattern checking function
  7. lass pat : public istream
  8.  
  9.    extrabuf *ebp;
  10.    int existingstream;
  11.  
  12. ublic:
  13.    // bind to an existing input stream
  14.    pat(istream& in) :
  15. ebp(new extrabuf(in))
  16.    { existingstream = 1; }
  17.